{
   let a :(number | string) = 1;
   a='1'

//函数接受的参数可以是number或者string
   function fn(x:(number | string)){

   }

   fn(1)
   fn("1")
}